package com.zx.idc.backend.gui.scheduler.report.securelog;

import com.zx.idc.common.spring.SpringBeanUtil;
import com.zx.idc.ds.report.rsecurelog.service.IRSecureLogDayService;
import org.quartz.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;


/**
 * 统计安全日志日报Job
 */
@PersistJobDataAfterExecution
@DisallowConcurrentExecution
public class RSecureLogDayJob implements Job {

    private static final Logger LOG = LoggerFactory.getLogger(RSecureLogDayJob.class);

    @Autowired
    private IRSecureLogDayService secureLogDayService;

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        LOG.info("Aggregate secure log daily report job start...");
        secureLogDayService.aggregate();
        LOG.info("Aggregate secure log daily report job done.");
    }

}
